import request from '@/utils/axios';
import appName from "@/api/appName";

// 根据条件查询直联核保信息
export function queryPreUnderApi(params) {
    return request({
        url: appName.PREUNDER + '/direct/preUnder/queryPreUnder',
        method: 'post',
        data: params
    })
}

// 加锁
export function addLockApi(params) {
    return request({
        url: appName.PREUNDER + '/checkout/lock/addLock',
        method: 'post',
        data: params
    })
}

// 解锁
export function unLockApi(params) {
    return request({
        url: appName.PREUNDER + '/checkout/lock/unLock',
        method: 'post',
        data: params
    })
}

// 查询锁状态
export function queryLockStatusApi(params) {
    return request({
        url: appName.PREUNDER + '/checkout/lock/queryLockStatus',
        method: 'post',
        data: params
    })
}